package demo3;

public class Bird extends Animal implements IFly,IRun{
    public Bird(String name) {
        super("布谷");
    }
    public void fly() {
        System.out.println(this.name+" 正在用两个翅膀飞！");
    }
    public void run() {
        System.out.println(this.name+" 正在用两个小腿腿跑！");
    }
    public void eat(){
        System.out.println(this.name+" 正在吃鸟粮...");
    }
}
